import { findBanner } from '@/api/home'
import { ref } from 'vue'
export function useBanner () {
  const sliders = ref([])
  async function loadSliders () {
    const res = await findBanner()
    sliders.value = res.data.result
  }
  loadSliders()
  return {
    sliders
  }
}
